package br.com.lambdacore.validator.impl;

public final class StringValidator extends ValidatorImpl<String> {

	private static final String BLANK = "";

	protected StringValidator(String string) {
		super(string);
	}

	public boolean blank() {
		return this.equalThan(BLANK);
	}

	public boolean notBlank() {
		return !this.blank();
	}

	public boolean notNullOrBlank() {
		return !this.nullOrBlank();
	}

	public boolean nullOrBlank() {
		return this.nil() || this.blank();
	}

	public static StringValidator is(String string) {
		return new StringValidator(string);
	}
}
